const { ccclass, property } = cc._decorator;

import Utils = require("../../utils/Utils");
import RepairBaseView from "./RepairBaseView";
@ccclass
export default class RepairPersonOneView extends RepairBaseView {

    _Step = ["waershao","fenciquan","fencizhen","mianqiu","yaogao"];//关卡标识 用于icon名字 拼接
    _StepList = [1, 1, 1, 2, 2, 2, 3, 3, 4, 5, 5, 5, 5];//13个步骤
    _StepNum = 5;//5关
    _guidePos = [
        cc.v2(-50,216),cc.v2(-60,-14),cc.v2(-72,54),cc.v2(36,240),cc.v2(-6,62),
        cc.v2(145,109),cc.v2(-262,-107),cc.v2(-262,-107),cc.v2(-262,-107),cc.v2(-304,120),
        cc.v2(92,300),cc.v2(20,75),cc.v2(-289,127)
    ];

    start(){
        super.start();
        this.aniSpine.setCompleteListener(() => {
            this.showGuide();
        });
        this.aniSpine.setAnimation(0, "000", false);
    };

    playSound(){
        let str = this._point >= 10 ? "0" : "00";
        let name = str + this._point
        Utils.audioManager.playSound("huazhuang/mini/person/step1/" + name);
    };
    
    makeDot(){
    };
}
